<div class="row contentBox">
    <app-sidebar-system></app-sidebar-system>
    <div class="contentArea_rightDiv">
        <div class="row txtTitle">

            <input type="text" class="input_style" placeholder="请输入API接口名称" name="searchData" *ngIf="right['systemPushed']['query']" [(ngModel)]="searchData" (input)="changesearch()" (keyup.enter)="changesearch()">
            <span class="btn btn-search btn-blue" (click)="search()" *ngIf="right['systemPushed']['query']">检索</span>

            <button class="btn btn-info btn-blue" data-toggle="modal" data-target="#add" *ngIf="right['systemPushed']['create']">新增</button>
            <button class="btn btn-orange mat-button"
                    data-toggle="modal"
                    [disabled]="removeTableService?._isEmpty()"
                    data-target="#delete"
                    *ngIf="right['systemPushed']['batchDelete']"
            >删除</button>
            <button
                    class="btn btn-green mat-button"
                    [disabled]="removeTableService?._isEmpty()"
                    (click)="_enable(1)"
                    *ngIf="right['systemPushed']['batchEnable']"
            >启用</button>
            <button
                    class="btn mat-button btn-orange"
                    [disabled]="removeTableService?._isEmpty()"
                    (click)="_disable(0)"
                    *ngIf="right['systemPushed']['batchDisable']"
            >禁用</button>
        </div>

        <!-- 表格 BEGIN -->
        <app-pushed-table #table
                                 [tableNumber]="tableNumber"
                                 (tabeListOutput)="ParentList($event)"
                                 (detailsOutput)="ParentDetails($event)"
                                 (isSelectFromTable)="isSelectFromTableHandler($event)"
        >
        </app-pushed-table>
        <!-- 表格 END -->

        <!-- 分页 BEGIN -->
        <app-pagination [getTotalItems]="this.table.totalItems" (isLoadTableFromPagination)="isLoadTableFromPaginationHandler($event)"></app-pagination>
        <!-- 分页 END -->
    </div>
</div>
<!--content  end-->


<!--新增弹窗 开始-->
<app-pushed-add (addOutput)="ParentAdd($event)"></app-pushed-add>
<!--新增弹窗 结束-->

<!--details-->
<app-pushed-details [details]="details"></app-pushed-details>
<!--details end-->

<!--编辑弹窗 开始-->
<app-pushed-edit [details]="details"  (editOutput)="ParentEdit($event)"></app-pushed-edit>
<!--编辑弹窗 结束-->

<!-- 删除 BEGIN -->
<app-pushed-delete (deleteOutput)="ParentDelete($event)"></app-pushed-delete>
<!-- 删除 END -->
